home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
game
/
patch
/
WHDIGamesA-E.lzh
/
games
/
Bloodwych.lha
/
BloodwychHD
/
Install Bloodwych
< prev
next >
Wrap
Text File
|
1998-06-21
|
2KB
|
127 lines
;****************************
;(set #sub-dir "") ;sub directory containing data files
;(set #readme-file "README") ;name of readme file
;****************************
;----------------------------
; Checks if given program is reachable via the path
; if not abort install
; IN: #program - to check
; OUT: -
(procedure P_chkrun
(if
(= 0 (run ("cd SYS:\nWhich %s" #program)))
("")
(abort ("You must install \"%s\" first !\nIt must be accessible via the path.\nYou can find it in the whdload package." #program))
)
)
;----------------------------
; Wait for inserting disk
; IN: #AD_disk - name of disk
; OUT: -
(procedure P_disk
(askdisk
(dest " ")
(prompt ("\nInsert \"%s\" in any drive !\n" #AD_disk))
(help #insertdisk-help)
)
)
;****************************
(set #program "WHDLoad")
(P_chkrun)
(set @default-dest
(askdir
(prompt ("Where should \"%s\" be installed ?\nA drawer \"%s\" will automatically be created." @app-name @app-name))
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(set #dest (tackon @default-dest @app-name))
(if
(exists #dest)
(
(set #choice
(askbool
(prompt ("\nDirectory \"%s\" already exists.\n Should it be deleted ?" #dest))
(default 1)
(choices "Delete" "Skip")
(help @askbool-help)
)
)
(if
(= #choice 1)
(run ("Delete \"%s\" \"%s.info\" All" #dest #dest))
)
)
)
(makedir #dest
(help @makedir-help)
(infos)
)
;----------------------------
(copyfiles
(help @copyfiles-help)
(source ("bw.slave"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("Bloodwych.inf"))
(newname ("Bloodwych.info"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("Install Notes"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("Install Notes.info"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("ReadMe"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("ReadMe.info"))
(dest #dest)
)
;----------------------------
(set #AD_disk "Bloodwych")
(set #program " :C/BLOODWYCH")
(P_disk)
(copyfiles
(help @copyfiles-help)
(source (" :C/"))
(dest #dest)
(pattern "#?")
)
(if
(= 0 (run "Reloc" (tackon #dest "TEST") (tackon #dest "TEST") "QUIET" ">con://///WAIT/CLOSE/AUTO"))
("")
(abort "\"Reloc\" could not find the intro pic!")
)
(exit)